<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>	
<link rel="stylesheet" href="${initParam.root}/css/board.css" type="text/css">

<script type="text/javascript">
	$(document).ready(function(){
		$("#answerImg").click(function(){
			$("#writeForm").submit();
		});
	});
</script>
<div id="mainCss">
	<form method="post" id="writeForm" action="${initParam.root }qna/reply.moja"  >
	 <table class="inputForm" >
	    <caption>답변글쓰기</caption>
	    <tbody>
		 <tr>
			<td>제목</td>
			<td><input type="text" name="qnaTitle" id="qnaTitle"
			value="RE:${requestScope.qvo.qnaTitle }"></td>
		 </tr>
		 <tr>
			<td>이름</td>
			<td><input type="text" name="qnaWriter" id="qnaWriter"></td>
		 </tr>
		
		 <tr>
			<td colspan=2 >
			<textarea cols="40" rows="10" name="qnaContent" id="qnaContent"></textarea>		
			</td>
		 </tr>
		 <tr>
		 	<td  colspan=2 >
		 		<img src="${initParam.root}/img/answer_btn.jpg"  id="answerImg" />		
		 	</td>
		 </tr>
	 </table> 
	  <input type="hidden" name="ref" value="${requestScope.qvo.ref }">
	 <input type="hidden" name="restep" value="${requestScope.qvo.restep }">
	 <input type="hidden" name="relevel" value="${requestScope.qvo.relevel }">
	 <input type="hidden" name="qnaNo" value="${requestScope.qvo.qnaNo }"> 
	 </form>
</div>
	